﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Devtm.ServiceModel.Discovery.Collection
{

    [Serializable]
    public class NotExistsException : Exception
    {
        public object Key {get; private set; }

        private const string message = "the key {0} not found";

        public NotExistsException(object key)
            : base( string.Format(message, key.ToString()))
        {
            // TODO: Complete member initialization
            this.Key = key;
        }

    }

}
